﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter01
{
    public class VariablesUses
    {
        public string DataType { get; set; }

        public string VariableDeclaration { get; set; }

        public string VariableAssignment { get; set; }

        public string Varialbeusing { get; set; }

        public void CodeListing()
        {
            DeclarationAndAssignment();
            MultiVarDeclaration();
            ChangeVariation();
            Require();
        }

        private void DeclarationAndAssignment()
        {
            string max;
            max = "Have fun storming the castle!";
            Console.WriteLine(max);
            Console.WriteLine();
        }

        private void MultiVarDeclaration()
        {
            string message1 = "message 1", message2 = "message 2";
            Console.WriteLine(string.Concat(message1, message2));
            Console.WriteLine();
        }

        private void ChangeVariation()
        {
            string valerie;
            string max = "Have fun storming the castle!";

            valerie = "Think it will word?";

            Console.WriteLine(max);
            Console.WriteLine(valerie);

            max = "It would take a miracle.";
            Console.WriteLine(max);
            Console.WriteLine();
        }

        private void Require()
        {
            string requirements, max;
            requirements = max = "It would take a miracle.";
            Console.WriteLine(requirements);
            Console.WriteLine();
        }
    }
}
